<?php
defined('_JEXEC') or die('Restricted access'); 

jimport( 'joomla.html.html.tabs');
JHtml::_('jquery.framework');
JHtml::_('behavior.keepalive');
JHTML::_('behavior.tooltip'); 
JHtml::_('behavior.framework');

?>

<script type="text/javascript">
	//<![CDATA[
	Joomla.submitbutton = function(pressbutton){
		if (pressbutton == 'cancel') {
			submitform( pressbutton );
			return;
		}
		if (document.adminForm.country_name.value == "") {
			alert( 'Must have contry name' );
			document.adminForm.country_name.focus();
		} else {
			submitform( pressbutton );
		}
	}
	//]]>
</script>

<form id="adminForm" action="<?php echo JRoute::_("index.php?option=com_activities")?>" method="post" name="adminForm" >
	<div class="row-fluid">
	    <fieldset class="adminform">
	    	<legend><?php echo JText::_('Details')?></legend>
			<table class="table table-striped adminlist">
				<tr>
					<td class="key">
						<label for="title"><?php echo JText::_('Country Name')?>:</label>
					</td>
					<td colspan="2">
						<input type="text" title="type" maxlength="50" size="50" value="<?php echo $this->data->country_name; ?>" id="country_name" name="country_name" class="country_name"/> *
					</td>
				</tr>
				<tr>
					<td class="key">
						<label for="title"><?php echo JText::_('Publish')?>:</label>
					</td>
					<td colspan="2">
						<?php echo $this->lists['published']; ?>
					</td>
				</tr>
            </table>
		</fieldset>
	</div>

	<input type="hidden" name="controller" value="country" />
	<input type="hidden" name="option" value="com_activities" />
	<input type="hidden" name="id" value="<?php echo (int)$this->data->id; ?>">
	<input type="hidden" name="task" value="" />
	<?php echo JHTML::_( 'form.token' ); ?>
</form>
